package com.szsh.aiot.hsm.domain.camera;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 摄像头异常访问信息
 *
 * @author zhangtt
 *
 */
public class CameraAbnormalModel {

    /*访问时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date tstamp;
    /*访问IP*/
    private String sourceIP;
    /*IP归属地*/
    private String sourceArea;
    /*推送原因 入参不传值默认为0  1:归属地命中 2:时间命中 3:归属地和时间均命中*/
    private int pushReason;

    public Date getTstamp() {
        return (Date) tstamp.clone();
    }

    public void setTstamp(Date tstamp) {
        this.tstamp = (Date) tstamp.clone();
    }

    public String getSourceIP() {
        return sourceIP;
    }

    public void setSourceIP(String sourceIP) {
        this.sourceIP = sourceIP;
    }

    public String getSourceArea() {
        return sourceArea;
    }

    public void setSourceArea(String sourceArea) {
        this.sourceArea = sourceArea;
    }

    public int getPushReason() {
        return pushReason;
    }

    public void setPushReason(int pushReason) {
        this.pushReason = pushReason;
    }

    @Override
    public String toString() {
        return "CameraAbnormalInfo{" +
                "tstamp=" + tstamp +
                ", sourceIP='" + sourceIP + '\'' +
                ", sourceArea='" + sourceArea + '\'' +
                ", pushReason=" + pushReason +
                '}';
    }
}
